package com.talent.muses.controller.rick;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * Created by zhumenglong on 2017/4/4.
 */
@Controller
@RequestMapping("test")
public class TestController {
    private final Logger logger = LoggerFactory.getLogger(this.getClass());

    /**
     * logback测试
     */
    @RequestMapping("logbackTest")
    @ResponseBody
    public String toBase() {
        logger.debug("输出debug级别的日志.....");
        logger.info("输出info级别的日志.....");
        logger.error("输出error级别的日志.....");
        return "中国";
    }
}
